import request from '@/utils/request'

// 查询边缘端列表
export function listEdge(query) {
  return request({
    url: '/network/edge/queryList',
    method: 'get',
    params: query
  })
}

// 查询边缘端详细
export function getEdge(id) {
  return request({
    url: '/network/edge/' + id,
    method: 'get'
  })
}

// 新增边缘端
export function addEdge(data) {
  return request({
    url: '/network/edge',
    method: 'post',
    data: data
  })
}

// 激活边缘端
export function changeEdge(data) {
  return request({
    url: '/network/edge/change',
    method: 'put',
    data: data
  })
}

// 修改边缘端
export function updateEdge(data) {
  return request({
    url: '/network/edge',
    method: 'put',
    data: data
  })
}

// 删除边缘端
export function delEdge(id) {
  return request({
    url: '/network/edge/' + id,
    method: 'delete'
  })
}
